cap log close
clear
set more off
global projdir "Q:/dc1prhcmsas01/PU2/code"

*Creates a balanced panel of stayers and a panel of firms-salaried-bins
do "$projdir/5_stayers_distribution.do"

*Plots the distribution of weekly base pay using $40 bins (Figures 1a and 1b)
do "$projdir/6_fig_diff_distribution_40bin.do"

*Plots the diff-in-diff change in the distribution of weekly base pay using $20 bins (Figure 1c)
do "$projdir/6_fig_diff_distribution.do"

*Plots the change in the distribution of weekly base pay from Jan 2016-Dec 2017 (Figures 2 and A1)
do "$projdir/6_fig_panel_diff_distribution_40bin.do"

*Estimates the magnitude of the bunching mass and plots it over time from May 2015-2018 (Figure 3)
do "$projdir/6_fig_bunch_mass.do"

*Plots the distribution of salary changes from Dec 2016-2017 for workers earning $913-953 per week in Dec 2016 (Figure 4)
do "$projdir/6_fig_distribution_change.do"

*Plot the evolution in weekly base pay between treated and control workers given their April 2016 characteristics (Figure 5a)
*Estimates the analogous regression and save the estimates
do "$projdir/6_reg_wage_growth_apr.do"

*Plot the evolution in weekly base pay between treated and control workers given their Dec 2016 characteristics (Figure 5c)
*Estimates the analogous regression and save the estimates
do "$projdir/6_reg_wage_growth.do"

*Plot diff-in-diff regression estimates (Figures 5b and 5d)
do "$projdir/7_plot_reg_growth.do"

*Summarize the diff-in-diff regression estimates (Table 1)
do "$projdir/7_table_reg_growth.do"

*Plots the distribution of annual wage changes from Dec 2016-2017, relative to the modal annual wage change within-firm (Figure A4)
do "$projdir/6_fig_diff_mode.do"


cap log close
